package com.hdax.dm.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hdax.dm.beans.order.order;
import com.hdax.dm.mappers.queryorderlistMapper;
import com.hdax.dm.service.confirmpayService;
import com.hdax.dm.utils.response.CommonResponse;
import com.hdax.dm.utils.response.ResponseUtil;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class confirmpayServiceImpl extends ServiceImpl<queryorderlistMapper, order> implements confirmpayService {

    @Override
    public CommonResponse<order> order(Map<String, String> params) {
        QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.eq("orderNo",params.get("orderNo"));
        return ResponseUtil.returnSuccess(baseMapper.selectOne(queryWrapper));
    }
}
